package com.zjitc;

import com.zjitc.obj.Teacher;
import com.zjitc.obj.User;
import javax.naming.Context;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import sun.security.ssl.SSLContextImpl.TLS10Context;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/7 14:41
 * @description:
 */
public class App2 {

  public static void main(String[] args) {
    ApplicationContext context=new ClassPathXmlApplicationContext("spring-config.xml");
    Teacher bean = context.getBean("teacher",Teacher.class);
    //User bean = context.getBean(User.class);
    System.out.println(bean);
  }
   
   
}
